<%--
  Created by IntelliJ IDEA.
  User: panbo
  Date: 2017/7/26
  Time: 14:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>登录页面</title>
    <%--<script>--%>
    <%--function r()--%>
    <%--{--%>
    <%--var username=document.getElementById("username");--%>
    <%--var pass=document.getElementById("password");--%>
    <%--if(username.value==="")--%>
    <%--{--%>
    <%--alert("请输入用户名！！！");--%>
    <%--username.focus();--%>
    <%--return;--%>
    <%--}--%>
    <%--if(pass.value==="")--%>
    <%--{--%>
    <%--alert("请输入密码！！！");--%>
    <%--return;--%>
    <%--}--%>
    <%--if(username.value==="panbo" && pass.value==="123"){--%>
    <%--window.location.href="filemag.jsp"--%>
    <%--}--%>
    <%--if(username.value==="panbo" && pass.value!=="123"){--%>
    <%--alert("密码输入错误，请重新输入?")--%>
    <%--}--%>
    <%--return true;--%>
    <%--}--%>
    <%--</script>--%>
</head>
<body style="background-size: 100%;background-color: #98bbfe">
<table>
    <tr>
        <td>语言</td>
        <td>
            <select title="语言">
                <option id="Chinese" selected>中文</option>
                <option id="English">English</option>
            </select>
        </td>
    </tr></table>
<div style="position: absolute;left: 37%;top: 15%">
    <form action="/docManagement/user/login" method="post" id="form">
        <table width="300"   align="center" >
            <tr align="center"><td colspan="2"><h1 style="color: white;font-family: 华文琥珀">在线文档管理系统</h1></td></tr>
            <tr style="height: 120px"></tr>
            <tr align=center>
                <td style="color: white">用户名</td>
                <td><input type="text" name="username" id="username" style="height: 100%;width: 100%" title="请输入用户名"></td>
            </tr>
            <tr align=center>
                <td style="color: white">密&emsp;码</td>
                <td><input type="password" name="userPwd" id="userPwd"style="height: 100%;width: 100%" title="请输入密码"></td>
            </tr>
            <tr align=center><td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="submit" value="登录" id="login"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="reset" value="重置"/></td>
            </tr>
        </table>
    </form>
    <a style="text-decoration: none;color: #491e6b" href="/docManagement/user/register">&emsp;&emsp;&emsp;&emsp;没有账号？点击这里注册</a>
</div>
</body>
</html>
